import { http } from "./../utils/index";
import type { BannerListResponseType, HomeDataType } from "./type";

// 1、请求首页轮播图数据  /api/cms/banner
export const reqGetBannerList = () => {
  return http.get<BannerListResponseType>(`/api/cms/banner`);
};

// 2、请求首页数据  /api/edu/index
export const reqGerHomeData = () => {
  return http.get<HomeDataType>(`/api/edu/index`)
}
